<?php
    /*
        connecting database and return connecting
    */
    // connecting db with pdo
    global $db;
    try {
        $db = new PDO('mysql:host=localhost;dbname=app_techone', "root", "") ;
    } catch (Exception $e) {
        echo 'Caught exception: ',  $e->getMessage(), "\n";
    }
?>